﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Centny.PdfReader.Types
{
    public class PdfName : PdfClass
    {
        public String Name { get; set; }
        public String NName
        {
            get
            {
                return this.Name.Replace("/", "");
            }
        }
        public PdfName(String n)
        {
            this.Name = n;
        }
        public override bool Equals(object obj)
        {
            if(!obj.GetType().Equals(this.GetType())){
                return false;
            }
            return this.Name.Equals(((PdfName)obj).Name);
        }
        public override int GetHashCode()
        {
            return this.Name.GetHashCode();
        }
    }
}
